/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package CapaPresentacion;

import java.util.TreeMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/**
 *
 * @author Elayner
 */
public class PantallaPrincilpal extends javax.swing.JFrame {

    /**
     * Creates new form PantallaPrincilpal
     */
    public PantallaPrincilpal() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        btn_busc_galeria = new javax.swing.JButton();
        btn_agr_galeria = new javax.swing.JButton();
        btn_agr_artista = new javax.swing.JButton();
        btn_busc_artista = new javax.swing.JButton();
        btn_agr_escuela = new javax.swing.JButton();
        btn_busc_escuela = new javax.swing.JButton();
        btn_agr_obra = new javax.swing.JButton();
        btn_busc_obra = new javax.swing.JButton();
        btn_agr_mecena1 = new javax.swing.JButton();
        btn_busc_mecena1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel1.setText("Menu de opciones");

        btn_busc_galeria.setText("Buscar Galeria");
        btn_busc_galeria.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_busc_galeriaActionPerformed(evt);
            }
        });

        btn_agr_galeria.setText("Agregar Galeria");
        btn_agr_galeria.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_agr_galeriaActionPerformed(evt);
            }
        });

        btn_agr_artista.setText("Agregar Artista");
        btn_agr_artista.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_agr_artistaActionPerformed(evt);
            }
        });

        btn_busc_artista.setText("Buscar Artista");
        btn_busc_artista.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_busc_artistaActionPerformed(evt);
            }
        });

        btn_agr_escuela.setText("Agregar Escuela");
        btn_agr_escuela.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_agr_escuelaActionPerformed(evt);
            }
        });

        btn_busc_escuela.setText("Buscar Escuela");
        btn_busc_escuela.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_busc_escuelaActionPerformed(evt);
            }
        });

        btn_agr_obra.setText("Agregar Obra");
        btn_agr_obra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_agr_obraActionPerformed(evt);
            }
        });

        btn_busc_obra.setText("Buscar Obra");
        btn_busc_obra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_busc_obraActionPerformed(evt);
            }
        });

        btn_agr_mecena1.setText("Agregar Mecena");
        btn_agr_mecena1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_agr_mecena1ActionPerformed(evt);
            }
        });

        btn_busc_mecena1.setText("Buscar Mecena");
        btn_busc_mecena1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_busc_mecena1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(btn_agr_galeria, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(22, 22, 22)
                                .addComponent(btn_agr_artista, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(btn_agr_escuela, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(btn_busc_galeria, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(22, 22, 22)
                                .addComponent(btn_busc_artista, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(btn_busc_escuela, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(135, 135, 135)
                        .addComponent(jLabel1)))
                .addContainerGap(48, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btn_busc_obra, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_agr_obra, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(104, 104, 104))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(79, 79, 79)
                    .addComponent(btn_agr_mecena1, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(264, Short.MAX_VALUE)))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(79, 79, 79)
                    .addComponent(btn_busc_mecena1, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(264, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btn_agr_galeria, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_agr_artista, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_agr_escuela, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btn_busc_galeria, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_busc_artista, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_busc_escuela, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30)
                .addComponent(btn_agr_obra, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btn_busc_obra, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(28, Short.MAX_VALUE))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(160, Short.MAX_VALUE)
                    .addComponent(btn_agr_mecena1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(90, 90, 90)))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(220, Short.MAX_VALUE)
                    .addComponent(btn_busc_mecena1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(30, 30, 30)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btn_agr_galeriaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_agr_galeriaActionPerformed
            
            PantallaGaleriaAgregar p;
            p = new PantallaGaleriaAgregar();
            p.setVisible(true);      
    }//GEN-LAST:event_btn_agr_galeriaActionPerformed

    private void btn_agr_artistaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_agr_artistaActionPerformed

            PantallaArtistaAgregar p;
        try {
            p = new PantallaArtistaAgregar();
            p.setVisible(true); 
        } catch (Exception ex) {
            Logger.getLogger(PantallaPrincilpal.class.getName()).log(Level.SEVERE, null, ex);
        }

            
            
    }//GEN-LAST:event_btn_agr_artistaActionPerformed

    private void btn_busc_galeriaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_busc_galeriaActionPerformed

            PantallaGaleriaBuscar p;
            p = new PantallaGaleriaBuscar();
            p.setVisible(true); 
    }//GEN-LAST:event_btn_busc_galeriaActionPerformed

    private void btn_agr_escuelaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_agr_escuelaActionPerformed

            PantallaEscuelaAgregar p;
            p = new PantallaEscuelaAgregar();
            p.setVisible(true); 
    }//GEN-LAST:event_btn_agr_escuelaActionPerformed

    private void btn_busc_escuelaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_busc_escuelaActionPerformed

            PantallaEscuelaBuscar p;
            p = new PantallaEscuelaBuscar();
            p.setVisible(true); 
    }//GEN-LAST:event_btn_busc_escuelaActionPerformed

    private void btn_busc_artistaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_busc_artistaActionPerformed

            PantallaArtistaBuscar p;
            p = new PantallaArtistaBuscar();
            p.setVisible(true); 
    }//GEN-LAST:event_btn_busc_artistaActionPerformed

    private void btn_agr_obraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_agr_obraActionPerformed

        try {
            PantallaObraAgregar p;
            p = new PantallaObraAgregar();
            p.setVisible(true); 
        } catch (Exception ex) {
            Logger.getLogger(PantallaPrincilpal.class.getName()).log(Level.SEVERE, null, ex);
        }
            
    }//GEN-LAST:event_btn_agr_obraActionPerformed

    private void btn_busc_obraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_busc_obraActionPerformed

            PantallaObraBuscar p;
            p = new PantallaObraBuscar();
            p.setVisible(true);
    }//GEN-LAST:event_btn_busc_obraActionPerformed

    private void btn_agr_mecena1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_agr_mecena1ActionPerformed
            PantallaMecenaAgregar p;
            p = new PantallaMecenaAgregar();
            p.setVisible(true);
    }//GEN-LAST:event_btn_agr_mecena1ActionPerformed

    private void btn_busc_mecena1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_busc_mecena1ActionPerformed
            PantallaMecenaBuscar p;
            p = new PantallaMecenaBuscar();
            p.setVisible(true);
    }//GEN-LAST:event_btn_busc_mecena1ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(PantallaPrincilpal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(PantallaPrincilpal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(PantallaPrincilpal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(PantallaPrincilpal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new PantallaPrincilpal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btn_agr_artista;
    private javax.swing.JButton btn_agr_escuela;
    private javax.swing.JButton btn_agr_galeria;
    private javax.swing.JButton btn_agr_mecena1;
    private javax.swing.JButton btn_agr_obra;
    private javax.swing.JButton btn_busc_artista;
    private javax.swing.JButton btn_busc_escuela;
    private javax.swing.JButton btn_busc_galeria;
    private javax.swing.JButton btn_busc_mecena1;
    private javax.swing.JButton btn_busc_obra;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables
}
